﻿/*
 *********************************************************************
 * 程序 : DeliveryCheck.DEntry
 * 类名 : FormHelper
 * 说明 : 弹出窗体助手类
 * 作者 : 兰智
 * 作成 : 2012/06/07 10:56
 * 履历 : 
 * 2012/06/18 lanzhi 窗体弹出切换焦点  
 *
 *********************************************************************
 */

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;

namespace NTTDATA.BEENChina.ResultCertification.Client.Entry.Logic
{
    public class FormHelper

    {
        private static FormHelper instance;
        private static Form _form;

        private FormHelper()
        {

        }
        public static FormHelper GetInstance(Form form)
        {
            //////////_form = form;
            //////////if (instance == null)
            //////////{
            //////////    instance = new FormHelper();
            //////////    Show();
            //////////}
            return instance;
        }

        public static void Show()
        {
           _form.Show();
            //#region 2012/06/18 lanzhi 窗体弹出切换焦点
            //////// _form.TopMost = true;
            //#endregion
        }

        public static void Dispose()
        {
        ////    if (instance != null)
        ////    {
        ////        instance = null;
        ////    }
        }
        public static void FormClose()
        {
            ////////if (_form != null)
            ////////{
            ////////    _form.Close();
            ////////}
            ////////Dispose();
        }
    }
}
